import request from '@/utils/request'

// 查询投诉列表
export function listComplaint(query) {
  return request({
    url: '/complaint/list',
    method: 'get',
    params: query
  })
}

// 修改当前投诉状态
export function updateStateComplaint(query) {
    return request({
      url: '/complaint/update/state',
      method: 'put',
      params: query
    })
  }